var e = require("../../@babel/runtime/helpers/interopRequireDefault").default, a = require("../../config/index"), t = e(require("../../kta/index")), r = e(require("../../service/index")), i = {
    title: "王卡直播不赚钱🔥",
    desc: "超多低价大牌尽在王卡直播间",
    date: "5月29日  19:00开播",
    shareTip: "王卡直播不赚钱，超多低价大牌尽在王卡直播间",
    shareImage: "/resources/images/queryRemain/liveDesc/share.jpg",
    startDate: new Date(2020, 4, 29, 18, 50, 0).getTime()
};

t.default.Page({
    data: {
        roomId: null,
        liveMsg: i,
        show: !1
    },
    onShareAppMessage: function() {
        return Object.assign(a.defaultShareContent, {
            title: i.shareTip,
            imageUrl: i.shareImage
        });
    },
    preLogin: function() {
        r.default.preLogin();
    },
    onLoad: function(e) {
        this.preLogin();
        var a = e.roomId, t = this.data.liveMsg.startDate;
        a && (Date.now() >= t ? wx.redirectTo({
            url: "plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=".concat(a)
        }) : this.setData({
            roomId: a,
            show: !0
        }));
    },
    onSubscribeClick: function() {
        t.default.clickStat("2c8bea8a8cce4deb87cb825731251e16", {
            roomId: this.data.roomId
        });
    }
});